import request from '@/utils/request'

// 查询维修订单列表
export function listServiceorder(query) {
  return request({
    url: '/zhhq/serviceorder/list',
    method: 'get',
    params: query
  })
}

// 查询维修订单详细
export function getServiceorder(orderId) {
  return request({
    url: '/zhhq/serviceorder/' + orderId,
    method: 'get'
  })
}

// 新增维修订单
export function addServiceorder(data) {
  return request({
    url: '/zhhq/serviceorder',
    method: 'post',
    data: data
  })
}

// 修改维修订单
export function updateServiceorder(data) {
  return request({
    url: '/zhhq/serviceorder',
    method: 'put',
    data: data
  })
}

// 删除维修订单
export function delServiceorder(orderId) {
  return request({
    url: '/zhhq/serviceorder/' + orderId,
    method: 'delete'
  })
}
